package com.project.practice11_24.service.impl;

import com.project.practice11_24.bean.Man;
import com.project.practice11_24.mapper.IManMapper;
import com.project.practice11_24.service.IManService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManServiceImpl implements IManService {
    protected IManMapper mapper;

    public void setMapper(IManMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public void update(int id, String newTel) {
        mapper.update(id,newTel);
    }

    @Override
    public List<Man> findAll() {
       return mapper.findAll();
    }
}
